<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Event
 *
 * @author ww
 */
class Event {
    static $aryObserversArray = array();
    public static function fireEvent($eventType, $data) {
        if (is_array(self::$aryObserversArray)) {
            foreach (self::$aryObserversArray as $objObserver) {
                $objObserver->notify($eventType, $data);
            }
        }
    }

    public static function addObserver(IObserver $obs) {
        self::$aryObserversArray[] = $obs;
    }
}

?>
